package com.otp.webapp.comparators;

import java.util.Comparator;
import com.otp.model.test.instance.TestItemResponseInstance;

public class CompTestItemResponseInstancesByItemId implements Comparator<TestItemResponseInstance>{
	
	public int compare(TestItemResponseInstance ri1, TestItemResponseInstance ri2){
		int order1 = (int) (long) ri1.getRelatedItem().getObjectId();
		int order2 = (int) (long) ri2.getRelatedItem().getObjectId();
		return order1-order2;
	}

}
